package com.common.base.widget

import android.content.Context
import android.util.AttributeSet
import androidx.viewpager.widget.ViewPager

class NoHorizontalViewPager : ViewPager {

    constructor(context: Context) : super(context) {}

    constructor(context: Context, attrs: AttributeSet) : super(context, attrs) {}


    override fun canScrollHorizontally(direction: Int): Boolean {
        return false
    }

    override fun setCurrentItem(item: Int) {
        super.setCurrentItem(item, false)
    }
}